<html>
<head>
  <style>
    .box {
      position: relative;
      left: 0;
      height: 100px;
      width: 100px;
      margin: 10px;
      background-color: blue;
      transition-property: transform;
      transition-duration: 0.1s;
      transform: translate(100px);
    }
  </style>
  <script src="transition-end-event-helpers.js"></script>
  <script type="text/javascript">
    
    var expectedEndEvents = [
      // [property-name, element-id, elapsed-time, listen]
      ["transform", "box1", 0.1, true]
    ];
    
    function setupTest()
    {
      var box = document.getElementById('box1');
      box.style.transform = 'translate(200px)';
    }
    
    runTransitionTest(expectedEndEvents, setupTest);
  </script>
</head>
<body>

<p>Initiating a 100ms transition on the transform property of box1.</p>

<div id="container">
  <div id="box1" class="box"></div>
</div>

<div id="result"></div>

</body>
</html>